Skip to content

Conversation

ericraio
Copy link
Contributor

Motivation:

Identified from issue #59, the swift-cassandra-client didn't expose serial consistency configuration needed for Lightweight Transactions, despite the C++ driver supporting it via cass_cluster_set_serial_consistency.

Modifications:

  • Added serialConsistency field to Configuration struct
  • Added setSerialConsistency method to Cluster class
  • Applied serial consistency in makeCluster method
  • Added testSerialConsistency unit test

Result:

Users can now set configuration.serialConsistency = .serial or .localSerial for proper LWT consistency guarantees.

@FranzBusch FranzBusch added the 🆕 semver/minor Adds new public API. label Sep 15, 2025
@FranzBusch FranzBusch enabled auto-merge (squash) September 15, 2025 12:58
@ericraio
Copy link
Contributor Author

Thanks @FranzBusch, I'll fix up the issue checks today

Motivation:

The swift-cassandra-client didn't expose serial consistency configuration
needed for Lightweight Transactions, despite the C++ driver supporting it
via cass_cluster_set_serial_consistency.

Modifications:

- Added serialConsistency field to Configuration struct
- Added setSerialConsistency method to Cluster class
- Applied serial consistency in makeCluster method
- Added testSerialConsistency unit test

Result:

Users can now set configuration.serialConsistency = .serial or .localSerial
for proper LWT consistency guarantees.
auto-merge was automatically disabled September 15, 2025 15:59

Head branch was pushed to by a user without write access

@ericraio ericraio force-pushed the eraio/add-serial-consistency-support branch from aa2ad56 to f3ce14e Compare September 15, 2025 15:59
@FranzBusch FranzBusch enabled auto-merge (squash) September 15, 2025 17:33
@FranzBusch FranzBusch merged commit 7b98490 into apple:main Sep 15, 2025
34 checks passed
@ericraio ericraio deleted the eraio/add-serial-consistency-support branch September 15, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants